home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM 1995 Fall / PD-ROM F95.toast / Programming / Programming Languages / Harvest C ƒ / MPW Int & Lib / Interfaces / Limits.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-17  |  565 b   |  31 lines  |  [TEXT/ttxt]

  1. /*
  2.     Limits.h -- Sizes of integral types 
  3.     
  4.     Copyright Apple Computer,Inc.    1987, 1990
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __LIMITS__
  10. #define __LIMITS__
  11.  
  12. #define CHAR_BIT    8
  13. #define CHAR_MAX    127
  14. #define CHAR_MIN    (-128)
  15. #define MB_LEN_MAX    1
  16. #define INT_MAX        2147483647
  17. #define INT_MIN        (-2147483648)
  18. #define LONG_MAX    2147483647
  19. #define LONG_MIN    (-2147483648)
  20. #define SCHAR_MAX    127
  21. #define SCHAR_MIN    (-128)
  22. #define SHRT_MAX    32767
  23. #define SHRT_MIN    (-32768)
  24. #define UCHAR_MAX    255U
  25. #define UINT_MAX    4294967295U
  26. #define ULONG_MAX    4294967295U
  27. #define USHRT_MAX    65535
  28.  
  29.  
  30. #endif
  31.